<?php
// +----------------------------------------------------------------------
// | 幕小铺
// +----------------------------------------------------------------------
// | 版权所有 2016~2020 幕小铺科技（大连）有限公司
// +----------------------------------------------------------------------
// | 2020/03/14
// +----------------------------------------------------------------------
namespace app\user_center\behavior\user\change_new_mobile_before;

/**
 * 手机验证码校验
 * @package app\user_center\behavior\user
 * @author shiqiang
 */
class checkMobileToken{
    /**
     * 执行行为 run方法是Behavior唯一的接口
     * @access public
     * @return void
     */
    public function run($params){
		$mobile_token 		= $params['mobile_token'];
		
		$result = model('UcMemberMobileSendcode', 'model\user') -> getDataByMobileToken($mobile_token);
		if($result['code'] < 0){
			return array_out(-1001, 'token无效');
		}
    }
}
